/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kaaction.common.persistence.DataEntity;

/**
 * 礼金记账明细Entity
 * @author huanghaiming
 * @version 2017-05-24
 */
public class WeddingGiftDetail extends DataEntity<WeddingGiftDetail> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 宾客名
	private double price;		// 金额
	private String thirdpartyId;		// thirdparty_id
	private Date addDate; //礼金新增日期
	
	public WeddingGiftDetail() {
		super();
	}

	public WeddingGiftDetail(String id){
		super(id);
	}

	@Length(min=0, max=255, message="宾客名长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	@Length(min=0, max=64, message="thirdparty_id长度必须介于 0 和 64 之间")
	public String getThirdpartyId() {
		return thirdpartyId;
	}

	public void setThirdpartyId(String thirdpartyId) {
		this.thirdpartyId = thirdpartyId;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAddDate() {
		return addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}
	
	
	
	
}